/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.diplomka.webapp.army;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Panel;

/**
 *
 * @author Jakub Kutil
 */
public class ArmyPanel extends Panel {

    public ArmyPanel(String id, PageParameters parameters) {
        super(id);

        if (parameters.containsKey("id")) {
            PageParameters p = new PageParameters();
            p.add("id", parameters.getString("id"));

            BookmarkablePageLink<Void> newArmy = new BookmarkablePageLink<>("newArmy", NewArmyPage.class, p);
            add(newArmy);

            BookmarkablePageLink<Void> armies = new BookmarkablePageLink<>("armies", ArmyPage.class, p);
            add(armies);

            BookmarkablePageLink<Void> marchingArmies = new BookmarkablePageLink<>("marchingArmies", MarchingArmyPage.class, p);
            add(marchingArmies);
            
        }
    }
}
